import {defineStore} from "pinia";

export const barTitleStore = defineStore('barTitleStore', ()=>{
    const title:Ref<string>=ref('')
    const getTitle = ():string=>{
        return title.value
    }
    const setTitle = (value:string)=>{
        title.value=value
    }
    return {getTitle,setTitle,title}
},{
    persist:{
        storage:piniaPluginPersistedstate.localStorage()
    }
})